import logging
import yagmail
def long_sent():
    logging.basicConfig(level=logging.DEBUG,filename='log.txt',filemode='w',format='%(filename)s -> %(funcName)s')
def set_tu(file):
    main=yagmail.SMTP(user='1689306711@qq.com',password='jmcxdzrdtuggfddb',host='smtp.qq.com')
    main.send(to='1689306711@qq.com',subject='a3mall接口测试报告',contents='很好',attachments=file)

